import { game } from "../game/control/game";

const mockOpenId = (): string => {
    let str = Date.now().toString(36);

    for (let i = 0; i < 7; i++) {
        str += Math.ceil(Math.random() * (10 ** 4)).toString(36);
    }

    return str;
};

// export default {
//     // MGOBE 游戏信息
//     gameId: "obg-i4txyz2p",
//     secretKey: "e8247c1e669cfe36d33b3203ad1f6feb99c96ba4",
//     url: "i4txyz2p.wxlagame.com",
//     // 玩家 ID，建议使用真实的 openId
//     openId: mockOpenId(),
//     // 默认匹配 Code
//     matchCode: "match-093ggphy",
// };
export default {
    // MGOBE 游戏信息
    gameId: "obg-i4txyz2p",
    secretKey: "e8247c1e669cfe36d33b3203ad1f6feb99c96ba4",
    url: "i4txyz2p.wxlagame.com",
    // 玩家 ID，建议使用真实的 openId
    openId: game.playerMgr.heroInfo.id,
    // 默认匹配 Code
    matchCode: "match-093ggphy",
    cacertNativeUrl: ""
};
export const matchCode = {
    rankCode: "match-grvxqf1a",
}
